import http from "@/server/http";

//课程列表
export const queryCourseList = (params) => {
    return http({
        url: "/user/school/course/index",
        method: "POST",
        data: params,
    })
}

//热门课程 
export const queryHotCourse = (params) => {
    return http({
        url: "/user/school/course/hot",
        method: "POST",
        data: params,
    })
}

//收藏课件 
export const collectCourse = (params) => {
    return http({
        url: "/user/school/course/collect",
        method: "POST",
        data: params,
    })
}

//课程详情 
export const queryCourseDatails = (params) => {
    return http({
        url: "/user/school/course/info",
        method: "POST",
        data: params,
    })
}

//章节用户评论列表 
export const queryCourseCommentList = (params) => {
    return http({
        url: "/user/school/course/comment_list",
        method: "POST",
        data: params,
    })
}

//发送评论  
export const sendCourseComment = (params) => {
    return http({
        url: "/user/school/course/send_comment",
        method: "POST",
        data: params,
    })
}

//章节详情 
export const queryChapterDatails = (params) => {
    return http({
        url: "/user/school/course/chapter_info",
        method: "POST",
        data: params,
    })
}

//保存心得 
export const saveLearning = (params) => {
    return http({
        url: "/user/school/course/save_learning",
        method: "POST",
        data: params,
    })
}

//心理学堂提交测评任务 
export const submitCourseEvaluationResult = (params) => {
    return http({
        url: "/user/school/course/submit_evaluation_task",
        method: "POST",
        data: params,
    })
}